package ooday02.Animal;
//父类
public class  Animal {
    String name;
    int age;
    String color;
    Animal(){
    }
    Animal(String color,int age,String name){
        this.color=color;
        this.age=age;
        this.name=name;

    }
    void eat(){
        System.out.println(color+"的"+age+"岁"+name+"正在吃饭");
    }
    void drin(){
        System.out.println(color+age+"岁"+name+"正在喝水");
    }
}
